/**
 * Created by Administrator on 2017/1/14.
 */
function stripeTables() {
    var suppord = document.getElementsByTagName;
    if (!suppord) {
        return false;
    }

    var tables = document.getElementsByTagName('table');
    var odd, rows;
    for (var i = 0; i < tables.length; i++) {
        odd = false;
        rows = tables[i].getElementsByTagName('tr');
        for (var j = 0; j < rows.length; j++) {
            if (odd == true) {
                addClass(rows[j],'odd');
                odd = false;
            } else {
                odd = true;
            }
        }
    }
}

addLoadEvent(stripeTables);